package za.org.jcicada.genss.sensor.messages;

import java.util.Set;

import za.org.jcicada.genss.messages.ReplyMessage;
import za.org.jcicada.genss.messages.Result;
import za.org.jcicada.genss.sensor.SensorURN;

/**
 * SensorAttachResponse message class.
 * @author rcrida
 */
public class AttachReply extends ReplyMessage {

    /**
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;

    /**
     * Set of sensors that have been detached from.
     */
    private Set<SensorURN> sensorURNs;
    
    /**
     * Construct message
     * @param result success status
     * @param sensorURNs set of sensors detached from
     */
    public AttachReply(Result result, Set<SensorURN> sensorURNs) {
        super(result);
        this.sensorURNs = sensorURNs;
    }
    
    public Set<SensorURN> getSensorURNs() {
        return sensorURNs;
    }
}
